{% extends 'base_order.html' %}

{% block header %}
    {{ block.super }}

    <header></header>
{% endblock %}

{% block content %}
    {{ block.supper }}

    <h5>订单编号：{{ order.id }}</h5>

    {% for ordergoods in order.ordergoods_set.all %}
        <div class="container">
            <div class="menuList">
                <a href="#">
                    <img src="/static{{ ordergoods.o_goods.productimg }}" alt="">
                    <p>{{ ordergoods.o_goods.productlongname }}</p>
                    <p class="presentPrice">{{ ordergoods.o_goods.price }}</p>
                </a>

                <section>
                    <span>{{ ordergoods.o_goods_num }}</span>
                </section>

            </div>
        </div>
    {% endfor %}

    <div class="total_price">
        <span>总价：</span>
        <span id="total_price">{{ order.o_price }}</span>
    </div>
    <br>
    <button class="btn btn-success btn-block">支付</button>

{% endblock %}